package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 日志对象 grid_logs
 * 
 * @author ruoyi
 * @date 2021-12-21
 */
public class GridLogs extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 节点ID */
    private Long logId;

    /** 归属主机 */
    @Excel(name = "归属主机")
    private String hostIp;

    /** 归属主机 */
    @Excel(name = "归属主机名称")
    private String hostName;

    /** 节点名称 */
    @Excel(name = "用户名")
    private String oldName;

    /** 启动密码 */
    @Excel(name = "用户密码")
    private String oldPass;

    /** 地址 */
    @Excel(name = "地址")
    private String name;

    /** 连接数 */
    @Excel(name = "密码")
    private String pass;

    /** 状态（0正常 1关闭） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=关闭")
    private String status;

    public void setLogId(Long logId) 
    {
        this.logId = logId;
    }

    public Long getLogId()
    {
        return logId;
    }
    public void setHostIp(String hostIp)
    {
        this.hostIp = hostIp;
    }

    public String getHostIp()
    {
        return hostIp;
    }
    public void setHostName(String hostName)
    {
        this.hostName = hostName;
    }

    public String getHostName()
    {
        return hostName;
    }
    public void setOldName(String oldName) 
    {
        this.oldName = oldName;
    }

    public String getOldName() 
    {
        return oldName;
    }
    public void setOldPass(String oldPass) 
    {
        this.oldPass = oldPass;
    }

    public String getOldPass() 
    {
        return oldPass;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPass(String pass) 
    {
        this.pass = pass;
    }

    public String getPass() 
    {
        return pass;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("logId", getLogId())
            .append("hostIp", getHostIp())
            .append("hostName", getHostName())
            .append("oldName", getOldName())
            .append("oldPass", getOldPass())
            .append("name", getName())
            .append("pass", getPass())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
